﻿#ifndef WIDGETCONTROL_H
#define WIDGETCONTROL_H

#include <QWidget>
#include <QMap>
#include <QApplication>

#include "login_widget.h"
#include "facelogin.h"
#include "register_widget.h"
#include "mainfunction.h"

namespace Ui {
class widgetControl;
}

class widgetControl : public QWidget
{
    Q_OBJECT

public:
    explicit widgetControl(QWidget *parent = nullptr);
    ~widgetControl();

    void start();
    void ConnectSlots();

private slots:
    void openFaceLogin(QMap<QString,QString> res);
    void openRegWidget();
    void openMainFunc(QMap<QString,QString> res);
    void returnLogin();
    void _close();

private:
    Ui::widgetControl *ui;

    login_widget *loginWidget;
    FaceLogin *faceLogin;
    register_widget *regWidget;
    MainFunction *mainFunc;
};

#endif // WIDGETCONTROL_H
